package com.sm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.sm.dao.interfaces.BookMapper;
import com.sm.entity.Book;
import com.sm.entity.BookExample;
import com.sm.service.interfaces.BookService;

@Service("bookService")
public class BookServiceImpl implements BookService {

	@Autowired
	@Qualifier("bookMapper1")
	private BookMapper bookMapper1 ;
	@Autowired
	private BookMapper bookMapper ;
	
	@Override
	public long countByExample(BookExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteByExample(BookExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insert(Book record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertSelective(Book record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<Book> selectByExample(BookExample example) {
		// TODO Auto-generated method stub
		return bookMapper1.selectByExample(example);
	}

	@Override
	public Book selectid(Integer id) {
		return bookMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(Book record, BookExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByExample(Book record, BookExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKeySelective(Book record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKey(Book record) {
		// TODO Auto-generated method stub
		return 0;
	}

}
